<project name="count change" app="Snap! 4.0, http://snap.berkeley.edu" version="1"><notes></notes><thumbnail></thumbnail><stage name="Stage" width="480" height="360" costume="0" tempo="20" threadsafe="false" lines="round" codify="false" scheduled="false" id="1"><pentrails></pentrails><costumes><list id="2"></list></costumes><sounds><list id="3"></list></sounds><variables></variables><blocks></blocks><scripts></scripts><sprites><sprite name="Sprite" idx="1" x="0" y="0" heading="90" scale="0.65" rotation="1" draggable="true" costume="1" color="80,80,80" pen="tip" id="8"><costumes><list id="9"><item><costume name="alonzo.gif" center-x="48" center-y="48" image="" id="10"/></item><item><costume name="quarter.gif" center-x="29.5" center-y="29" image="" id="11"/></item><item><costume name="dime.gif" center-x="20.5" center-y="15.5" image="" id="12"/></item><item><costume name="nickel.gif" center-x="20.5" center-y="20" image="" id="13"/></item><item><costume name="penny.gif" center-x="19" center-y="19.5" image="" id="14"/></item><item><costume name="dots.gif" center-x="19" center-y="18" image="" id="15"/></item><item><costume name="01.gif" center-x="9.5" center-y="14.5" image="" id="16"/></item><item><costume name="11.gif" center-x="10" center-y="15.5" image="" id="17"/></item><item><costume name="21.gif" center-x="9" center-y="16" image="" id="18"/></item><item><costume name="31.gif" center-x="11" center-y="16.5" image="" id="19"/></item><item><costume name="41.gif" center-x="10.5" center-y="14.5" image="" id="20"/></item><item><costume name="51.gif" center-x="10.5" center-y="14.5" image="" id="21"/></item><item><costume name="61.gif" center-x="10.5" center-y="14.5" image="" id="22"/></item><item><costume name="71.gif" center-x="11" center-y="16.5" image="" id="23"/></item><item><costume name="81.gif" center-x="10.5" center-y="13.5" image="" id="24"/></item><item><costume name="91.gif" center-x="9" center-y="13.5" image="" id="25"/></item></list></costumes><sounds><list id="26"></list></sounds><variables></variables><blocks></blocks><scripts><script x="32" y="30"><block s="receiveGo"></block><block s="doSwitchToCostume"><l>alonzo.gif</l></block><block s="setScale"><l>65</l></block><block s="clear"></block><block s="gotoXY"><l>0</l><l>0</l></block><block s="show"></block><block s="doAsk"><l>Enter an amount of money in cents and I&apos;ll show you how to pay it in coins.</l></block><block s="hide"></block><block s="clear"></block><custom-block s="make-change %n"><block s="reportLastAnswer"></block></custom-block><block s="doSwitchToCostume"><l>alonzo.gif</l></block></script></scripts></sprite><watcher var="position" style="normal" x="10" y="10" color="243,118,29" hidden="true"/></sprites></stage><hidden></hidden><headers></headers><code></code><blocks><block-definition s="make-change %&apos;amount&apos;" type="command" category="other"><header></header><code></code><inputs><input type="%n"></input></inputs><script><block s="doSetVar"><l>position</l><l>0</l></block><custom-block s="changer %n %l %l"><block var="amount"/><block s="reportNewList"><list><l>25</l><l>10</l><l>5</l><l>1</l></list></block><block s="reportNewList"><list></list></block></custom-block></script></block-definition><block-definition s="changer %&apos;amount&apos; %&apos;coins&apos; %&apos;sofar&apos;" type="command" category="other"><header></header><code></code><inputs><input type="%n"></input><input type="%l"></input><input type="%l"></input></inputs><script><block s="doIf"><block s="reportLessThan"><block var="amount"/><l>0</l></block><script><block s="doStopThis"><l><option>this block</option></l></block></script></block><block s="doIf"><block s="reportEquals"><block var="amount"/><l>0</l></block><script><custom-block s="display %l"><block var="sofar"/></custom-block><block s="doStopThis"><l><option>this block</option></l></block></script></block><block s="doIf"><block s="reportEquals"><block s="reportListLength"><block var="coins"/></block><l>1</l></block><script><custom-block s="display %l"><block s="reportCONS"><block s="reportNewList"><list><block var="amount"/><l>4</l></list></block><block var="sofar"/></block></custom-block><block s="doStopThis"><l><option>this block</option></l></block></script></block><custom-block s="changer %n %l %l"><block s="reportDifference"><block var="amount"/><block s="reportListItem"><l>1</l><block var="coins"/></block></block><block var="coins"/><custom-block s="update %l %l"><block var="sofar"/><block var="coins"/></custom-block></custom-block><custom-block s="changer %n %l %l"><block var="amount"/><block s="reportCDR"><block var="coins"/></block><block var="sofar"/></custom-block></script></block-definition><block-definition s="display %&apos;sofar&apos;" type="command" category="other"><header></header><code></code><inputs><input type="%l"></input></inputs><script><block s="doDeclareVariables"><list><l>slots</l><l>count</l><l>spaced</l></list></block><block s="doIf"><block s="reportGreaterThan"><block var="position"/><l>10</l></block><script><block s="doWait"><l>1</l></block><block s="clear"></block><block s="doSetVar"><l>position</l><l>0</l></block></script></block><block s="doSetVar"><l>spaced</l><block s="reportTrue"></block></block><block s="gotoXY"><l>-200</l><block s="reportDifference"><l>150</l><block s="reportProduct"><l>30</l><block var="position"/></block></block></block><block s="setHeading"><l>90</l></block><block s="doSetVar"><l>slots</l><l>17</l></block><custom-block s="for each item of %l %cs"><custom-block s="reverse %l"><block var="sofar"/></custom-block><script><block s="doSetVar"><l>count</l><block s="reportListItem"><l>1</l><l/></block></block><block s="doIfElse"><block s="reportAnd"><block s="reportOr"><block s="reportGreaterThan"><block var="count"/><block var="slots"/></block><block s="reportGreaterThan"><block var="count"/><l>6</l></block></block><block s="reportGreaterThan"><block var="slots"/><block s="reportSum"><custom-block s="if %b then %anyUE else %anyUE"><block var="spaced"/><l>0</l><l>1</l></custom-block><block s="reportStringSize"><block var="count"/></block></block></block></block><script><block s="doIf"><block s="reportNot"><block var="spaced"/></block><script><block s="forward"><l>25</l></block><block s="doChangeVar"><l>slots</l><l>-1</l></block></script></block><custom-block s="numeric display %n"><block var="count"/></custom-block><block s="forward"><l>8</l></block><block s="doSwitchToCostume"><block s="reportSum"><block s="reportListItem"><l>2</l><l/></block><l>1</l></block></block><block s="show"></block><block s="doStamp"></block><block s="hide"></block><block s="forward"><l>50</l></block><block s="doSetVar"><l>spaced</l><block s="reportTrue"></block></block><block s="doChangeVar"><l>slots</l><block s="reportDifference"><l>-2</l><block s="reportStringSize"><block var="count"/></block></block></block></script><script><block s="doSwitchToCostume"><block s="reportSum"><block s="reportListItem"><l>2</l><l/></block><l>1</l></block></block><block s="doRepeat"><custom-block s="min %n %n"><block var="slots"/><block var="count"/></custom-block><script><block s="show"></block><block s="doStamp"></block><block s="hide"></block><block s="forward"><l>25</l></block></script></block><block s="doSetVar"><l>spaced</l><block s="reportFalse"></block></block><block s="doIf"><block s="reportGreaterThan"><block var="count"/><block var="slots"/></block><script><block s="doSwitchToCostume"><l>dots.gif</l></block><block s="show"></block><block s="doStamp"></block><block s="hide"></block></script></block><block s="doChangeVar"><l>slots</l><block s="reportDifference"><l>0</l><custom-block s="min %n %n"><block var="slots"/><block var="count"/></custom-block></block></block></script></block></script></custom-block><block s="doChangeVar"><l>position</l><l>1</l></block></script></block-definition><block-definition s="update %&apos;sofar&apos; %&apos;coins&apos;" type="reporter" category="other"><header></header><code></code><inputs><input type="%l"></input><input type="%l"></input></inputs><script><block s="doIf"><custom-block s="empty? %l"><block var="sofar"/></custom-block><script><block s="doReport"><block s="reportNewList"><list><block s="reportNewList"><list><l>1</l><block s="reportDifference"><l>5</l><block s="reportListLength"><block var="coins"/></block></block></list></block></list></block></block></script></block><block s="doIf"><block s="reportEquals"><block s="reportDifference"><l>5</l><block s="reportListLength"><block var="coins"/></block></block><block s="reportListItem"><l>2</l><block s="reportListItem"><l>1</l><block var="sofar"/></block></block></block><script><block s="doReport"><block s="reportCONS"><block s="reportNewList"><list><block s="reportSum"><block s="reportListItem"><l>1</l><block s="reportListItem"><l>1</l><block var="sofar"/></block></block><l>1</l></block><block s="reportListItem"><l>2</l><block s="reportListItem"><l>1</l><block var="sofar"/></block></block></list></block><block s="reportCDR"><block var="sofar"/></block></block></block></script></block><block s="doReport"><block s="reportCONS"><block s="reportNewList"><list><l>1</l><block s="reportDifference"><l>5</l><block s="reportListLength"><block var="coins"/></block></block></list></block><block var="sofar"/></block></block></script></block-definition><block-definition s="empty? %&apos;data&apos;" type="predicate" category="lists"><header></header><code></code><inputs><input type="%l"></input></inputs><script><block s="doReport"><block s="reportEquals"><block var="data"/><block s="reportNewList"><list></list></block></block></block></script></block-definition><block-definition s="for %&apos;i&apos; = %&apos;start&apos; to %&apos;end&apos; %&apos;action&apos;" type="command" category="control"><header></header><code></code><inputs><input type="%upvar"></input><input type="%n"></input><input type="%n"></input><input type="%cs"></input></inputs><script><block s="doDeclareVariables"><list><l>step</l><l>tester</l></list></block><block s="doIfElse"><block s="reportGreaterThan"><block var="start"/><block var="end"/></block><script><block s="doSetVar"><l>step</l><l>-1</l></block><block s="doSetVar"><l>tester</l><block s="reifyPredicate"><autolambda><block s="reportLessThan"><block var="i"/><block var="end"/></block></autolambda><list></list></block></block></script><script><block s="doSetVar"><l>step</l><l>1</l></block><block s="doSetVar"><l>tester</l><block s="reifyPredicate"><autolambda><block s="reportGreaterThan"><block var="i"/><block var="end"/></block></autolambda><list></list></block></block></script></block><block s="doSetVar"><l>i</l><block var="start"/></block><block s="doUntil"><block s="evaluate"><block var="tester"/><list></list></block><script><block s="doRun"><block var="action"/><list></list></block><block s="doChangeVar"><l>i</l><block var="step"/></block></script></block></script></block-definition><block-definition s="reverse %&apos;data&apos;" type="reporter" category="lists"><header></header><code></code><inputs><input type="%l"></input></inputs><script><block s="doDeclareVariables"><list><l>result</l><l>copy of data to make Jens happy</l></list></block><block s="doSetVar"><l>result</l><block s="reportNewList"><list></list></block></block><block s="doSetVar"><l>copy of data to make Jens happy</l><block var="data"/></block><block s="doRepeat"><block s="reportListLength"><block var="data"/></block><script><block s="doSetVar"><l>result</l><block s="reportCONS"><block s="reportListItem"><l>1</l><block var="copy of data to make Jens happy"/></block><block var="result"/></block></block><block s="doSetVar"><l>copy of data to make Jens happy</l><block s="reportCDR"><block var="copy of data to make Jens happy"/></block></block></script></block><block s="doReport"><block var="result"/></block></script></block-definition><block-definition s="for each item of %&apos;data&apos; %&apos;action&apos;" type="command" category="lists"><header></header><code></code><inputs><input type="%l"></input><input type="%cs"></input></inputs><script><block s="doIf"><custom-block s="empty? %l"><block var="data"/></custom-block><script><block s="doStopThis"><l><option>this block</option></l></block></script></block><block s="doRun"><block var="action"/><list><block s="reportListItem"><l>1</l><block var="data"/></block></list></block><custom-block s="for each item of %l %cs"><block s="reportCDR"><block var="data"/></block><block var="action"/></custom-block></script></block-definition><block-definition s="if %&apos;test&apos; then %&apos;yes&apos; else %&apos;no&apos;" type="reporter" category="control"><header></header><code></code><inputs><input type="%b"></input><input type="%anyUE"></input><input type="%anyUE"></input></inputs><script><block s="doIfElse"><block var="test"/><script><block s="doReport"><block s="evaluate"><block var="yes"/><list></list></block></block></script><script><block s="doReport"><block s="evaluate"><block var="no"/><list></list></block></block></script></block></script></block-definition><block-definition s="numeric display %&apos;number&apos;" type="command" category="other"><header></header><code></code><inputs><input type="%n"></input></inputs><script><block s="doIf"><block s="reportGreaterThan"><block var="number"/><l>9</l></block><script><custom-block s="numeric display %n"><custom-block s="all but last letter of %s"><block var="number"/></custom-block></custom-block></script></block><block s="doSwitchToCostume"><block s="reportSum"><l>7</l><block s="reportModulus"><block var="number"/><l>10</l></block></block></block><block s="show"></block><block s="doStamp"></block><block s="hide"></block><block s="forward"><l>15</l></block></script></block-definition><block-definition s="min %&apos;a&apos; %&apos;b&apos;" type="reporter" category="operators"><header></header><code></code><inputs><input type="%n"></input><input type="%n"></input></inputs><script><block s="doReport"><custom-block s="if %b then %anyUE else %anyUE"><block s="reportLessThan"><block var="a"/><block var="b"/></block><block var="a"/><block var="b"/></custom-block></block></script></block-definition><block-definition s="all but last letter of %&apos;word&apos;" type="reporter" category="operators"><header></header><code></code><inputs><input type="%s"></input></inputs><script><block s="doDeclareVariables"><list><l>result</l></list></block><block s="doSetVar"><l>result</l><l></l></block><custom-block s="for %upvar = %n to %n %cs"><l>i</l><l>1</l><block s="reportDifference"><block s="reportStringSize"><block var="word"/></block><l>1</l></block><script><block s="doSetVar"><l>result</l><block s="reportJoinWords"><list><block var="result"/><block s="reportLetter"><block var="i"/><block var="word"/></block></list></block></block></script></custom-block><block s="doReport"><block var="result"/></block></script></block-definition></blocks><variables><variable name="position"><l>7</l></variable></variables></project>